package indigo6a.train.algorithm.graph;
// 顶点
public class VNode {
    // 第一条边
    private ArcNode firstArc;
    // 入度数
    private int in;

    public int getIn() {
        return in;
    }

    public void setIn(int in) {
        this.in = in;
    }

    public VNode(ArcNode firstArc, int in) {
        this.firstArc = firstArc;
        this.in=in;
    }

    @Override
    public String toString() {
        return "VNode{" +
                "firstArc=" + firstArc +
                '}';
    }

    public ArcNode getFirstArc() {
        return firstArc;
    }

    public void setFirstArc(ArcNode firstArc) {
        this.firstArc = firstArc;
    }
}
